home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / binutils.7 / binutils / binutils-2.7 / ld / scripttempl / mipsbsd.sc < prev    next >
Encoding:
Text File  |  1996-07-04  |  518 b   |  31 lines

  1. cat <<EOF
  2. OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
  3.           "${LITTLE_OUTPUT_FORMAT}")
  4. OUTPUT_ARCH(${ARCH})
  5.  
  6. ${RELOCATING+${LIB_SEARCH_DIRS}}
  7. SECTIONS
  8. {
  9.   ${RELOCATING+. = ${TEXT_START_ADDR};}
  10.   .text :
  11.   {
  12.     CREATE_OBJECT_SYMBOLS
  13.     *(.text)
  14.     ${RELOCATING+etext = ${DATA_ALIGNMENT};}
  15.   }
  16.   ${RELOCATING+. = ${DATA_ALIGNMENT};}
  17.   .data :
  18.   {
  19.     *(.data)
  20.     ${CONSTRUCTING+CONSTRUCTORS}
  21.     ${RELOCATING+edata  =  .;}
  22.   }
  23.   .bss :
  24.   {
  25.    *(.bss)
  26.    *(COMMON)
  27.    ${RELOCATING+end = . };
  28.   }
  29. }
  30. EOF
  31.